<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>weui弹窗测试</title>
  <link rel="stylesheet" href="dist/css/toast.min.css">
<!--  <link rel="stylesheet" href="dist/libs/weui.css">-->
  <script src="dist/libs/jquery-2.1.4.js"></script>
  <script src="dist/js/toast.min.js"></script>
</head>
<body>
  <button onclick="$.toast('操作成功');">显示成功</button>
  <button onclick="$.toast('操作取消','cancel')">显示取消</button>
  <button onclick="$.toast('禁止操作','forbidden')">显示禁止</button>
  <button onclick="$.toast('纯文本','text')">显示纯文本</button>
  <button onclick="$.showLoading()">显示Loading</button>
  <button onclick="$.hideLoading()">关闭Loading</button>
  <script>
    $.toast.prototype.defaults.duration = 500000;
  </script>
</body>
</html>
